<template>
	<view class="tripTabGroup">
		<view class="tab look_for_people" v-if="type===1">
			<view class="text">车找人</view>
		</view>
		<view class="tab look_for_car" v-if='type===0'>
			<view class="text">人找车</view>
		</view>
	</view>
</template>

<script setup>
defineProps({
	type:{
		type:Number,
		default:1
	}
})
</script>

<style lang="scss" scoped>
	.tripTabGroup {
		.tab {
			height: 56rpx;
			width: fit-content;
			background: #aaa;
			display: flex;
			align-items: center;
			font-size: 30rpx;
			font-weight: bold;
			letter-spacing: normal;
			padding: 0 15rpx;
			border-radius: 10rpx;
			.text {
				padding-left: 10rpx;
				color: #676767;
			}
		}

		.tab.look_for_people {
			background: #FFF3F7;
			.icon {
				background: linear-gradient(to right, #f83162, #ff7795);
			}
		}

		.tab.look_for_car{
			background: #EDFDF0;
			.icon {
				background-image: linear-gradient(to right, #4F9153, #4bbb8b);
			}
		}
	}
</style>